package com.xmkj.bearbiz.member.adaper;

import android.content.Context;

import com.common.BearBean.JiFenListBean;
import com.common.BearBean.OrderListInfo;
import com.common.widget.recyclerview.refresh.adapter.CommonAdapter;
import com.common.widget.recyclerview.refresh.adapter.ViewHolder;
import com.xmkj.bearbiz.R;

import java.util.List;

/**
 * Create by leo
 * 创建日期：2018/7/26
 * 描述：
 */

public class JiFenAdapter extends CommonAdapter<JiFenListBean> {
    public JiFenAdapter(Context context, List<JiFenListBean> data) {
        super(context, data);
    }

    @Override
    protected void convert(ViewHolder holder, JiFenListBean item, int position) {
        holder.setText(R.id.tv_date,item.date);
        holder.setText(R.id.tv_jifen_first,item.begin_score);
        holder.setText(R.id.tv_jifen_change,item.change_score);
        holder.setText(R.id.tv_beizhu,item.remarks);
        holder.setText(R.id.tv_jifen_balance,item.surplus_score);
    }

    @Override
    protected int getItemViewLayoutId(int position, JiFenListBean item) {
        return R.layout.item_jifen_list;
    }
}
